var UI = {
        synchronize: function()
        {
                $('#messages').load("/announceapp/ajax/messages");
                window.setTimeout("UI.synchronize()", 10000);
        }
}